/**
 * <p>
 *
 * @Author：Roy
 * @Description：数据范围
 * @Date：Create by 2024-01-17 16:55:06
 */
import request from '@/utils/request'

const dataRange = {
  // 分页查询数据范围
  queryList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/dataRange/queryPage',
      method: 'post',
      data
    })
  },
  // 新增数据范围
  add(data) {
    return request({
      url: '/energy-carbon/ecp-admin/dataRange/add',
      method: 'post',
      data
    })
  },
  // 详情
  detail(data) {
    return request({
      url: '/energy-carbon/ecp-admin/dataRange/detail',
      method: 'post',
      data
    })
  },
  // 编辑数据范围
  update(data) {
    return request({
      url: '/energy-carbon/ecp-admin/dataRange/update',
      method: 'post',
      data
    })
  },
  // 删除数据范围
  deleteById(data) {
    return request({
      url: '/energy-carbon/ecp-admin/dataRange/deleteById',
      method: 'post',
      data
    })
  },
  // 启用禁用
  enableOrDisable(data) {
    return request({
      url: '/energy-carbon/ecp-admin/dataRange/enableOrDisable',
      method: 'post',
      data
    })
  },
  // 批量删除数据范围
  batchDelete(data) {
    return request({
      url: '/energy-carbon/ecp-admin/dataRange/batchDelete',
      method: 'post',
      data
    })
  },
  // 查询全部数据角色
  queryAllList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/dataRange/queryList',
      method: 'post',
      data
    })
  },
  // 查询数据范围权限
  querySceneList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/userExt/querySceneList',
      method: 'post',
      data
    })
  }
}

export default dataRange
